Kate IDE

Path installed thorught Flatpak

~/.var/app/org.kde.kate

Backup your config

To "export" your settings, you essentially need to backup the relevant configuration files and then copy them to your new system or user profile.

Main Configuration:

~/.var/app/org.kde.kate/.config/katerc (General application settings)

Color Schemes/Syntax Highlighting:

~/.var/app/org.kde.kate/.config/kateschemarc

~/.var/app/org.kde.kate/.config/katesyntaxhighlightingrc

Keyboard Shortcuts (Key Bindings):

~/.var/app/org.kde.kate/.local/share/kxmlgui5/katepart/katepart5ui.rc (Contains keymaps for the editing component)

Snippets, Sessions, and other Meta Information:

The files related to sessions and snippets are often found in directories like:

~/.var/app/org.kde.kate/.local/share/kate/

~/.var/app/org.kde.kate/.local/share/ktexteditor/

General Steps to Export/Backup:

  • Close Kate to ensure all settings are saved to disk.
  • Locate and copy the files/directories listed above (e.g., katerc, kateschemarc, katepart5ui.rc, and the content of ~/.local/share/kate/ if it exists).
  • Transfer these files to your new machine or profile.
  • Place them in the corresponding locations on the new system (you may need to overwrite existing files, so consider backing those up first).
  • Start Kate on the new system.

Setup Language Server Protocol

  • Install lsp e.g. pip install pyrefly.
  • Menu > Settings > Configure Kate > LSP Client > User Server Settings:
  • Copy this setup:
{
  "servers": {
    "python": {
      "command": ["pyrefly", "lsp"],
      "url": "https://pyrefly.org",
      "highlightingModeRegex": "^Python$"
    }
  }
}
  • command is a field that change as well as highlightingModeRegex, url is only for reference.